﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MoneyBook.Navigation {
    public class NavigationMessageService : IApplicationService {

        public event EventHandler<RequestNavigationEventArgs> RequestNavigation;

        private static NavigationMessageService current = null;

        public static NavigationMessageService Curret {
            get { return current; }
        }

        public void Navigate(Uri uri) {
            if (this.RequestNavigation != null) {
                this.RequestNavigation(this, new RequestNavigationEventArgs(uri));
            }
        }

        public void StartService(ApplicationServiceContext context) {
            current = this;
        }

        public void StopService() {
        }


    }
}
